package com.qing.fordemo;

/**
 * for的高级语法使用
 */
public class HighForDemo {
    public static void main(String[] args) {
        int[] num = {10, 20, 30, 40, 50};
        int[] multiplyTenNum = new int[5];
        for (int i : num) {
            System.out.println(i);
        }
        System.out.println("=======================================");
        for (int i = 0; i < num.length; i++) {
            System.out.println(num[i]);
        }
        System.out.println("=======================================");
        for (int i = 0; i < num.length; i++) {
            multiplyTenNum[i] = num[i] * 10;
            System.out.println(multiplyTenNum[i]);
        }
    }
}
